package research.domain;

import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Viscosity extends Entity {
	private String name;
	private String idx;
	private Sample sample;
	private Set<ViscosityValue> viscosityValues;
	
	public Viscosity() {
		super(EntityType.Viscosity);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdx() {
		return idx;
	}

	public void setIdx(String idx) {
		this.idx = idx;
	}

	public Sample getSample() {
		return sample;
	}

	public void setSample(Sample sample) {
		this.sample = sample;
	}

	public Set<ViscosityValue> getViscosityValues() {
		return viscosityValues;
	}

	public void setViscosityValues(Set<ViscosityValue> viscosity_values) {
		this.viscosityValues = viscosity_values;
	}

	public static Viscosity getNew() {
		Viscosity res = new Viscosity();
		res.setName("");
		res.setIdx("");
		return res;
	}

	
}
